﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true"
    CodeBehind="groupinfo.aspx.cs" Inherits="Web.group.groupinfo" %>
<%@ Register Src="~/controls/message.ascx" TagName="message" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GVPageManager.ascx" TagPrefix="ui" TagName="gv" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <h3>
                    集团信息</h3>
                <ul class="content-box-tabs">
                    <li><a id="a_tab1" href="#tab1" class="<%=string.IsNullOrEmpty(Request["h_cur_tab"]) || Request["h_cur_tab"]=="a_tab1"?"default-tab":"" %>" onclick="setDefaultTab(this);">集团信息</a></li>
                    <!-- href must be unique and match the id of target div -->
                    <li><a id="a_tab2" href="operator.aspx" class="<%=Request["h_cur_tab"]=="a_tab2"?"default-tab":"" %>" onclick="setDefaultTab(this);">管理员维护</a></li>
                </ul>
                <div class="clear">
                </div>
            </div>
            <!-- End .content-box-header -->
            <div class="content-box-content">
                <div class="tab-content <%=string.IsNullOrEmpty(Request["h_cur_tab"]) || Request["h_cur_tabdiv"]=="tab1"?"default-tab":"" %>" id="tab1">
                    <div class="form">
                        <fieldset>
                            <uc:message ID="u_message" Visible="false" runat="server" />
                            <p>
                                <label>
                                    集团名称</label>
                                <asp:TextBox ID="txb_groupname" CssClass="text-input small-input" runat="server" ReadOnly="true"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    所属行业</label>
                                <asp:DropDownList ID="ddl_industry" runat="server" CssClass="small-input">
                                </asp:DropDownList>
                                <br />
                            </p>
                            <p>
                                <label>
                                    注册地址</label>
                                <asp:TextBox ID="txb_regaddress" CssClass="text-input medium-input datepicker" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator CssClass="input-notification error png_bg" ID="RequiredFieldValidator1" runat="server" ErrorMessage="请填写注册地址" ControlToValidate="txb_regaddress" SetFocusOnError="true"></asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <label>
                                    通信地址</label>
                                <asp:TextBox ID="txb_linkaddress" CssClass="text-input medium-input datepicker" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator CssClass="input-notification error png_bg" ID="RequiredFieldValidator2" runat="server" ErrorMessage="请填写联系地址" ControlToValidate="txb_linkaddress" SetFocusOnError="true"></asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <label>
                                    电话总机</label>
                                <asp:TextBox ID="txb_phone" CssClass="text-input small-input" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator CssClass="input-notification error png_bg" ID="RegularExpressionValidator1" runat="server" ErrorMessage="电话格式错误" ControlToValidate="txb_phone" SetFocusOnError="true" ValidationExpression="^(\(\d{3,4}\)|\d{3,4}-|\d{3,4})?\d{7,8}$"></asp:RegularExpressionValidator>
                            </p>
                            <p>
                                <label>
                                    传真</label>
                                <asp:TextBox ID="txb_fax" CssClass="text-input small-input" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator CssClass="input-notification error png_bg" ID="RegularExpressionValidator2" runat="server" ErrorMessage="传真格式错误" ControlToValidate="txb_fax" SetFocusOnError="true" ValidationExpression="^(\(\d{3,4}\)|\d{3,4}-|\d{3,4})?\d{7,8}$"></asp:RegularExpressionValidator>
                            </p>
                            <p>
                                <label>
                                    集团使用人数</label>
                                <asp:TextBox ID="txb_usenum" CssClass="text-input small-input" runat="server" ReadOnly="true"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    集团规模</label>
                                <asp:TextBox ID="txb_totalnum" CssClass="text-input small-input" runat="server" ReadOnly="true"></asp:TextBox>
                            </p>
                            <p>
                                <asp:Button ID="btn_save" CssClass="button" runat="server" Text="提交" OnClick="btn_save_Click" />
                        </fieldset>
                        <div class="clear">
                        </div>
                    </div>
                    <!-- End .clear -->
                </div>
                <!-- End #tab1 -->
                <div class="tab-content <%=Request["h_cur_tabdiv"]=="tab2"?"default-tab":"" %>" id="tab2">
                    <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server">
                        <Columns>
                            <asp:BoundField DataField="userid" HeaderText="用户编号" SortExpression="userid" />
                            <asp:BoundField DataField="username" HeaderText="登录名" />
                            <asp:BoundField DataField="nickname" HeaderText="昵称" />
                            <asp:BoundField DataField="registertime" HeaderText="注册时间" />
                            <asp:BoundField DataField="usertype" HeaderText="用户类型" />
                        </Columns>
                    </asp:GridView>
                    <ui:gv ID="GV" runat="server" />
                </div>
                <!-- End #tab2 -->
            </div>
            <!-- End .content-box-content -->
        </div>
    <input id="h_cur_tab" name="h_cur_tab" type="hidden" value="<%=Request["h_cur_tab"]%>"/>
    <input id="h_cur_tabdiv" name="h_cur_tabdiv" type="hidden" value="<%=Request["h_cur_tabdiv"]%>"/>
    </form>
</asp:Content>
